Skip to content

Blend space editor: Use correct name in events, and clean all states#119070

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
Ryan-000:fix-animation-10
May 12, 2026
Merged

Blend space editor: Use correct name in events, and clean all states#119070
Repiteo merged 1 commit into
godotengine:masterfrom
Ryan-000:fix-animation-10

Conversation

@Ryan-000
Copy link
Copy Markdown
Contributor

@Ryan-000 Ryan-000 commented Apr 28, 2026

Split from #119029
Resolves #118982

#110369 changed the names from itos(index), to custom names however the animation_node_removed signal was not updated to reflect that change.

Also, it's safer to clear all the state when removing, rather than just the name.

godotengine#110369 changed the names from itos(index), to custom names however the "animation_node_removed" signal was not updated to reflect that change.

Also its safer to clear all the state when removing, rather than just the name.
@Ryan-000 Ryan-000 requested a review from a team as a code owner April 28, 2026 20:47
@TokageItLab TokageItLab added this to the 4.x milestone Apr 29, 2026
@AThousandShips AThousandShips changed the title Use correct name in events, and clean all state Blend space editor: Use correct name in events, and clean all states Apr 29, 2026
@TokageItLab TokageItLab modified the milestones: 4.x, 4.7 Apr 30, 2026
@BlueCube3310
Copy link
Copy Markdown
Contributor

While this does fix the crash, undoing deleting new_animation will also delete new_animation 2

Before deleting:
0

After deleting:
1

After deleting & undo:
2

@Ryan-000
Copy link
Copy Markdown
Contributor Author

Ryan-000 commented May 8, 2026

While this does fix the crash, undoing deleting new_animation will also delete new_animation 2

Before deleting: 0

After deleting: 1

After deleting & undo: 2

Could you try testing this with #119069 applied on top? IIRC it fixed some weird undo behaviour when I tried it, so it might resolve that too.

@TokageItLab
Copy link
Copy Markdown
Member

@Ryan-000 If those two PRs are related, it might be helpful to merge them into a single PR.

@BlueCube3310
Copy link
Copy Markdown
Contributor

Indeed, that PR applied on top of this one makes it work correctly

Copy link
Copy Markdown
Contributor

@BlueCube3310 BlueCube3310 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, the crashing is fixed and the code changes make sense

@Repiteo Repiteo merged commit d3a741d into godotengine:master May 12, 2026
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented May 12, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Godot crashes when undoing a deleted animation point on a BlendSpace1D node

4 participants